package com.jzl.swing.rowmapper.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.jzl.swing.entity.User;
import com.jzl.swing.rowmapper.RowMapper;

public class UserRowMapper implements RowMapper{

	@Override
	public Object getObjectMapper(ResultSet rSet) throws SQLException {
		User user = new User();
		user.setUser_name(rSet.getString("user_name"));
		user.setUser_pass(rSet.getString("user_pass"));
		user.setUser_iden(rSet.getString("user_iden"));
		
		return user;
	}

}
